﻿using Microsoft.AspNetCore.Diagnostics;
using Microsoft.AspNetCore.Mvc;

// For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860

namespace CoreMVC.Jurisdiction.Manage.Controllers
{
    public class SharedController : Controller
    {
        /// <summary>
        /// 错误页面设置
        /// </summary>
        /// <returns></returns>
        // GET: /<controller>/
        public IActionResult Error()
        {
            var ex = HttpContext.Features.Get<IExceptionHandlerFeature>();
            ViewData["ErrorMsg"] = ex.Error.Message;
            return View();
        }
    }
}
